package com.itqian.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itqian.system.entity.Announcement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itqian.system.form.AnnouncementForm;

import java.util.Map;

/**
 * <p>
 * 网站公告表 服务类
 * </p>
 *
 * @author shishuqian
 * @since 2022-03-21
 */
public interface AnnouncementService extends IService<Announcement> {

    /**
     *  添加公告
     */
    boolean add(AnnouncementForm form);

    /**
     *  分页查询公告，按更新时间降序
     */
    Page<Announcement> list(Integer page, Integer size);

}
